package com.xinqi.modules.sys.feedback.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.feedback.domain.FeedbackEntity;
import com.xinqi.modules.sys.feedback.dto.req.FeedbackCreateDTO;
import com.xinqi.modules.sys.feedback.dto.req.FeedbackRewardedDTO;
import com.xinqi.modules.sys.feedback.dto.rsp.FeedbackResultDTO;
import org.mapstruct.Mapper;

/**
 * 用户反馈表转换
 *
 * @author: yyzhenn
 * @date: 2023/04/23
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class FeedbackConvert {
    public abstract FeedbackEntity create(FeedbackCreateDTO s);

    public abstract FeedbackEntity rewarded(FeedbackRewardedDTO s);

    public abstract FeedbackResultDTO convert(FeedbackEntity s);
}
